/*

*/


define(
   [
      'dojo/_base/declare',
      'dijit/Menu'
   ],
   function(declare, Menu)
   {
      return declare([Menu],
      {
         mTarget: null,
         postscript:function (args)
         {
            this.inherited(arguments);
            if(this.mTarget)
               this.setTarget(this.mTarget);
         },
         destroy: function()
         {
            // Memory clean up
            this.mTarget = null;
         },
         
         // Overide this method and immediately call the parent.  Then set up each of your noBusinessBase/Menu/ContextMenuItem's
         setTarget: function (pTarget)
         {
            this.mTarget = pTarget;
         }
      });
   }
);
